﻿@{
    Layout = null;
    List<LeEdu.MODEL.Columnss> collist = ViewBag.collist;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>AddColumn</title>
</head>
<body>
    <form class="form-horizontal" method="post" action="/Group/Addcategory">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="exampleModalLabel">添加栏目</h4>
        </div>
        <div class="modal-body">
            <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label">栏目名称</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLNAME" id="CLNAME" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">栏目编码</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLCODING" id="CLCODING" placeholder="">
                    <span style="color:#808080">生成列表，资讯时使用，例如news bbs等</span>
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">父栏目</label>
                <div class="col-sm-10">
                    <select class="form-control" name="CLMGR">
                        <option value="0">选择栏目</option>
                        @foreach (var item in collist)
                        {
                            <option @(item.ColumnssID == ViewBag.mgr ? "selected='selected'" : "") value="@item.ColumnssID">@item.CLNAME</option>
                        }
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">显示顺序号</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLOrder" id="CLOrder" placeholder="0">
                    <span style="color:#808080">显示顺序号 数字越小 位置越前</span>
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">SEO标题</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLSEOtitle" id="CLSEOtitle" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">SEO关键字</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLSEOKey" id="CLSEOKey" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">SEO描述</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="CLSEOdescribe" id="CLSEOdescribe" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="text" class="col-sm-2 control-label">启用</label>
                <div class="col-sm-10">
                    <label class="radio-inline">
                        <input type="radio" name="CLState" id="radio1" value="0" checked="checked"><span>是</span>
                    </label>
                    <label class="radio-inline">
                        <input type="radio" name="CLState" id="radio2" value="1"><span>否</span>
                    </label>
                </div>
            </div>
        </div>
        <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
            <button type="submit" class="btn btn-primary">提交</button>
        </div>
        </form>
</body>
</html>
